package com.mapper;

import com.pojo.text;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;


public interface textMapper {

    @Select("select * from text")
    List<text> text_selectAll();

    @Select("select * from text where uId = #{uId}")
    List<text> text_selectuser(int uId);

    //新增博客

    /**
     * 未完成
     * @param uId
     * @param textContent
     * @param textTime
     */
    @Insert("insert into text values(null,#{uId},#{textContent},#{textTime}) ")
    void text_Insert(@Param("uId") int uId, @Param("textContent")String textContent, @Param("textTime")String textTime);
}
